//
//  XSFileManager.h
//  AudioVideo
//
//  Created by xueshan1 on 2019/8/22.
//  Copyright © 2019 xueshan1. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


/**
 文件管理
 */
@interface XSFileManager : NSObject

+ (instancetype)shareInstance;

+ (NSString *)documentPath;
+ (NSString *)tempPath;

+ (BOOL)createDirectoryInDocumentWithPathComponent:(NSString *)pathComponent;
+ (BOOL)removeDirectoryInDocWithPathComponent:(NSString *)pathComponent;

+ (void)deletePath:(NSString *)path;
+ (NSString *)tempFilePathWithPathComponent:(NSString *)pathComponent;
+ (void)deleteTempFileWithPathComponent:(NSString *)pathComponent;

+ (void)clearTemp;
+ (NSString *)tempVideoDirectory;
+ (NSString *)tempVideoPath;
+ (NSURL *)tempVideoURL;

@end

NS_ASSUME_NONNULL_END
